package com.hnkywl.sts.service.sys;

import com.hnkywl.sts.dao.sys.GnczDao;
import com.hnkywl.sts.entity.sys.Gncz;
import com.hnkywl.sts.entity.sys.Ymys;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * Created with IntelliJ IDEA.
 * User: ZHUCHG
 * Date: 13-5-8
 * Time: 下午3:08
 * To change this template use File | Settings | File Templates.
 */
@Service
public class GnczService {
    private GnczDao gnczDao;

    public List<Gncz> findGnczByJsAndUrl(String url) {
        Set<Long> jsId = YgService.getCurrentYgQxId();
        return gnczDao.findGnczByJsAndUrl(jsId, url);
    }

    @Autowired
    public void setGnczDao(GnczDao gnczDao) {
        this.gnczDao = gnczDao;
    }
}
